﻿using System.Data.Entity;

namespace Web.Models
{
    public class ReservingRoomContext : DbContext
    {
        public ReservingRoomContext() : base("DefaultConnection")
        {
            Database.SetInitializer<ReservingRoomContext>(new DropCreateDatabaseIfModelChanges<ReservingRoomContext>());
        }

        public DbSet<Room> Rooms { get; set; }
        public DbSet<Reservation> Reservations { get; set; }
        public DbSet<UserInfo> UserInfos { get; set; } 
    }
}